package com.webxiaohua.pattern.simplefactory;

/**
 * @Author: shenxinhua
 * @Date: 10/14/21 1:16 PM
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        IProduct product = ProductFactory.createProduct("ProductA");
        product.showName();

        IProduct productA = ProductFactory.createProduct2("ProductA");
        productA.showName();

        IProduct productB = ProductFactory.createProduct3("ProductB");
        productB.showName();
    }
}
